package com.zhaoxi.demo.demo2.config;

import com.zhaoxi.demo.demo2.pros1.PropertiesDemo1;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author zxiaoming
 * @Description:
 * @date 2021/2/2823:43
 */
@Configuration
@PropertySource(value = "user.properties",encoding = "UTF-8")
public class ProConfig {
    @Bean
    public PropertiesDemo1 getPropertiesDemo1(){
        return new PropertiesDemo1();
    }
}
